package org.genntii.warehousesystem.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("goods")
public class Goods {
    @TableId
    private int id;
    private String name;
    private int brand;
    @TableField("img_src")
    private String imgSrc;
    private String description;
    private int status;
    @TableField("on_sale")
    private int onSale;
    @TableField("out_price")
    private BigDecimal outPrice;
    @TableField("wholesale_price")
    private BigDecimal wholesalePrice;
    @TableField("wholesale_num")
    private int wholesaleNum;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("last_update_time")
    private LocalDateTime lastUpdateTime;
    private String specification;
    @TableField("bar_code")
    private Long barCode;
}
